import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-18
 * Time: 19:25
 */
public class Demo3 {
    public static void main(String[] args) throws IOException {
        try(  InputStream inputStream =new FileInputStream("d:/text.txt")){
            while(true){
                int n =  inputStream.read();
                if(n==-1){
                    break;
                }
                System.out.printf("0x%x ",n);
            }
        }

    }
}
